import{ref} from 'vue';
import {defineStore} from 'pinia';

export const useCourseManageIdStore = defineStore('courseManageId',()=>{
    //定义状态的内容
    //响应式变量
    const courseManageId = ref('');
    //修改token
    const setCourseManageId=(newCourseManageId)=>{
        courseManageId.value = newCourseManageId;
    }
    //移除token
    const removeCourseManageId=()=>{
        courseManageId.value = '';
    }
    
    return{
        courseManageId,setCourseManageId,removeCourseManageId
    }
},{
    persist: true //持久化存储
})